package com.bw.home.api

import com.bw.home.entity.LoginEntity
import com.bw.lib_net.BaseRes
import retrofit2.http.POST
import retrofit2.http.Query

interface LoginApi {
    @POST("/user/login")
    suspend fun login(
        @Query("username") username: String,
        @Query("password") password: String
    ): BaseRes<LoginEntity>

    @POST("/user/register")
    suspend fun register(
        @Query("username") username: String,
        @Query("password") password: String
    ): BaseRes<LoginEntity>
}